When a QuickMenuToggle is made insensitive, then it is unexpected
that its menu can still be opened despite the appearance.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2405>
this.bind_property('menu-enabled',
this._menuButton, 'visible',
- GObject.BindingFlags.DEFAULT);
+ GObject.BindingFlags.SYNC_CREATE);
+ this.bind_property('reactive',
+ this._menuButton, 'reactive',
+ GObject.BindingFlags.SYNC_CREATE);
this._menuButton.connect('clicked', () => this.menu.open());
this.connect('popup-menu', () => {
if (this.menuEnabled)